package soccer.helper;

import java.util.Comparator;

import soccer.domain.Klub;

public class UrutKlubByNama implements Comparator<Klub>{

	@Override
	public int compare(Klub arg0, Klub arg1) {
		if(arg0.getPoint() < arg1.getPoint()){
			return arg0.getNama().compareTo(arg1.getNama());
		//	
		}
		else if(arg0.getPoint() > arg1.getPoint()){
			return arg0.getNama().compareTo(arg1.getNama());
		}
		return 0;
	}

}
